import Vue from 'vue';
import App from './App.vue';
import vueRouter from 'vue-router';
Vue.use(vueRouter);
import home from './components/Home.vue';
import shopcar from './components/shopcar/car.vue';
import newslist from './components/news/newslist.vue';
var router1=new vueRouter({
	linkActiveClass:'mui-active',
	routes:[
		{path:'/home',component:home},
		{path:'/shopcar',component:shopcar},
		{path:'/new/newslist',component:newslist}
	]
});
/*导入mint-ui*/
import 'mint-ui/lib/style.css';
import Mint from 'mint-ui';
// 使用mint-ui
Vue.use(Mint);
import '../statics/mui/css/mui.css';
import '../statics/css/sites.css';
import vueResource from 'vue-resource';
Vue.use(vueResource);
/*注册全局过滤器*/

import moment from 'moment';
Vue.filter('datefmt',function (input, fmtstring) {
	return moment(input).format(fmtstring)
})
new Vue({
	el:'#app',
	router:router1,
	render:c=>c(App)
});